package com.t213.pet.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.t213.pet.entity.Pet;
import com.t213.pet.mapper.PetMapper;
import com.t213.pet.service.IPetService;

@Service("petSerivce")
public class PetServiceImpl implements IPetService {
	private PetMapper petMapper;
	
	@Autowired
	public void setPetMapper(PetMapper petMapper) {
		this.petMapper = petMapper;
	}

	public List<Pet> findPet() {
		return petMapper.find(null);
	}

	public int add(Pet pet) {
		return petMapper.add(pet);
	}

	public List<Pet> findPetype(Pet pet) {
		return petMapper.findPetype(pet);
	}
}
